foodModalCtrl.$inject = ['foodService','$location','$rootScope','$stateParams','$uibModalInstance'];

function foodModalCtrl(foodService,$location,$rootScope,$stateParams,$uibModalInstance) {

    var vm=this;
    vm.say='hello modal';
    vm.check = function(){
        console.log('modal click come in');
        $uibModalInstance.dismiss('cancel');
        $location.path("/cart");
    }
    vm.browse = function() {
        console.log('cancel operation come in...');
        $uibModalInstance.dismiss('cancel');
    }
  
}

module.exports = foodModalCtrl;